package exprtree;

import visitor.Visitor;

public class UnaryMinusOpExpr extends Expr {

	private Expr expr;

	/**
	 * UnaryMinusOpExpr
	 * @param expr which is an Expr object
	 */
	public UnaryMinusOpExpr(Expr expr){
		this.expr = expr;
	}

	/**
	 * accept
	 * @param visitor
	 * @return Object
	 */
	public Object accept(Visitor visitor){
		return visitor.visit(this);
	}
}
